package cn.faifai.desktop.view.components;

import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.control.Label;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Priority;

// 头部组件封装
public class HeaderBar {
    private final HBox container = new HBox();

    public HeaderBar(String title) {
        Label titleLabel = new Label(title);
        titleLabel.setStyle("-fx-font-size: 18px; -fx-text-fill: #333;");

        container.getChildren().addAll(titleLabel);
        container.setSpacing(20);
        container.setPadding(new Insets(12));
        container.setStyle("-fx-background-color: #f5f5f5; -fx-border-color: #ddd;");
    }

    public HBox getView() { return container; }
}

